﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration.Conventions;
using System.Linq;
using System.Web;
using RetailSystem.MVC.Models;

namespace RetailSystem.MVC.Context
{
    public class GeneralContext: DbContext
    {
        public DbSet<Shop> Shops { get; set; }

        public DbSet<Input> Inputs { get; set; }

        public DbSet<ProductInfo> ProductInfos { get; set; }

        public DbSet<ProductStatistics> ProductStatistics { get; set; }

        public DbSet<Selling> Sellings { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
        }
    }
}